<div class="users_form">
<?php echo $this->Form->create('User');?>
	<h3><?php __('Nouvel Utilisateur'); ?></h3>
        <table>
	<?php
            echo '<tr>';
                echo '<td>';
                    echo '<label>Nom</label>';
                echo '</td>';
                echo '<td>';
                    echo $this->Form->input('lastname',array('label'=> false));
                echo '</td>';
            echo '</tr>';
            echo '<tr>';
                echo '<td>';
                    echo '<label>Prénom</label>';
                echo '</td>';
                echo '<td>';
                    echo $this->Form->input('firstname',array('label'=> false));
                echo '</td>';
            echo '</tr>';
            echo '<tr>';
                echo '<td>';
                    echo '<label>E-mail</label>';
                echo '</td>';
                echo '<td>';
                    echo $this->Form->input('email',array('label'=> false));
                echo '</td>';
            echo '</tr>';
            echo '<tr>';
                echo '<td>';
                    echo '<label>Mot de passe</label>';
                echo '</td>';
                echo '<td>';
                    echo $this->Form->input('password',array('label'=> false));
                echo '</td>';
            echo '</tr>';
            echo '<tr>';
                echo '<td>';
                    echo '<label>Anniversaire</label>';
                echo '</td>';
                echo '<td>';
                    echo $this->Form->input('birthday',array('label'=> false,'dateFormat' => 'DMY', 'monthNames' => false, 'minYear' => date('Y') -100, 'maxYear' => date('Y')));
                echo '</td>';
            echo '</tr>';
            echo '<tr>';
                echo '<td>';
                    echo '<label>Ville</label>';
                echo '</td>';
                echo '<td>';
                    echo $this->Form->input('city', array('label'=> false));
                echo '</td>';
            echo '</tr>';
            echo '<tr>';
                echo '<td>';
                    echo '<label>Code Postal</label>';
                echo '</td>';
                echo '<td>';
                    echo $this->Form->input('zipcode',array('label'=> false));
                echo '</td>';
            echo '</tr>';
            echo '<tr>';
                echo '<td>';
                    echo '<label>Adresse</label>';
                echo '</td>';
                echo '<td>';
                    echo $this->Form->input('address',array('label'=> false));
                echo '</td>';
            echo '</tr>';
            echo '<tr>';
                echo '<td>';
                    echo '<label>Téléphone</label>';
                echo '</td>';
                echo '<td>';
                    echo $this->Form->input('phone',array('label'=> false));
                echo '</td>';
            echo '</tr>';
            echo '<tr>';
                echo '<td>';
                    echo '<label>Type d\'utilisateur</label>';
                echo '</td>';
                echo '<td>';
                    echo $this->Form->input('privilege_id',array('label'=> false));
                echo '</td>';
            echo '</tr>';
            echo '<tr>';
                echo '<td colspan="2">';
                    echo $this->Form->end(__('ENVOYER', true));
                echo '</td>';
            echo '</tr>';?>
            </table>
</div>
<!-- Menu à mettre dans un élément quand l'utilisateur (étudiant sera authentifié)

<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>

		<li><?php echo $this->Html->link(__('List Users', true), array('action' => 'index'));?></li>
		<li><?php echo $this->Html->link(__('List Privileges', true), array('controller' => 'privileges', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Privilege', true), array('controller' => 'privileges', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Cvs', true), array('controller' => 'cvs', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Cv', true), array('controller' => 'cvs', 'action' => 'add')); ?> </li>
	</ul>
</div>
-->